<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnRespIdInOrderTable extends AbstractMigration
{
    public function up()
    {
        $this->table('order')
            ->addColumn('party_a_resp_producer_id', 'integer', ['limit' => 11, 'null' => false, 'signed' => false, 'default' => 0, 'comment' => '甲方制片负责人id'])
            ->addColumn('party_b_resp_producer_id', 'integer', ['limit' => 11, 'null' => false, 'signed' => false, 'default' => 0, 'comment' => '乙方制片负责人id'])
            ->save();

    }

    public function down()
    {
        $this->table('order')->removeColumn('party_a_resp_producer_id')->removeColumn('party_b_resp_producer_id')->save();
    }
}

